package cn.com.service.cs;

import java.util.List;
import java.util.Map;

import cn.com.commons.Paginator;
import cn.com.dal.dataobject.cs.BranchcostDO;
import cn.com.support.message.MessageResult;

/**
 * 分院报销SERVICE
 * 
 * @since 2012-4-3 下午9:22:53
 * @version 1.0
 * @author Zoe
 */
public interface BranchcostService {

	/**
	 * 分页查询报销
	 * 
	 * @param paginator
	 * @return
	 */
	<C> Paginator<C, List<BranchcostDO>> selectByPage(
			Paginator<C, List<BranchcostDO>> paginator);

	/**
	 * 根据ID查询
	 * 
	 * @param id
	 * @return
	 */
	MessageResult<BranchcostDO> selectById(Long id);

	/**
	 * 插入
	 * 
	 * @param branchcostDO
	 * @return
	 */
	MessageResult<Long> insert(BranchcostDO branchcostDO);

	/**
	 * 更新
	 * 
	 * @param branchcostDO
	 * @return
	 */
	MessageResult<Integer> updateById(BranchcostDO branchcostDO);

	/**
	 * 根据ID删除
	 * 
	 * @param ids
	 *        
	 * @return
	 */
	MessageResult<Long> deleteById(Long[] ids);

	/**
	 * 根据条件查询
	 * 
	 * @param params
	 * @return
	 */
	List<BranchcostDO> selectList(Map<Object, Object> params);
	
	BranchcostDO selectTotalById(Long id);
}
